package com.shop.cereshop.app.param.sysmsg;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@ApiModel(value = "设置所有消息已读参数")
@AllArgsConstructor
@NoArgsConstructor
public class ReadAllMsgParam implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "类型：1-系统消息 2-互动消息 3-点赞和收藏 ", required = true)
    @Min(value = 1, message = "type不能小于1")
    @Max(value = 3, message = "type不能大于3")
    @NotNull(message = "type不能为空")
    private Integer type;

}
